﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HanGu.Entity;
using System.ServiceModel;

namespace HanGu.Services.Interface
{
    [ServiceContract(Name = "Group", Namespace = "http://www.haigu.com/")]
    public interface IGroup
    {
        [OperationContract]
        List<Group> GetAll();
        [OperationContract]
        List<Group> GetAll(UniversallySearchParam searchparma);
        [OperationContract]
        Group GetByID(int id);
        [OperationContract]        
        bool Add(Group model);
        [OperationContract]
        bool Update(Group model);
        [OperationContract]
        bool Delete(int  id);
        [OperationContract]
        bool DeleteSelected(int memberID, int groupid);
        [OperationContract]
        List<VMemberGrouped> GetSelected(UniversallySearchParam searchparma);
        [OperationContract]
        List<MemberInfo> GetSelecting(UniversallySearchParam searchparma);
        

    }
}
